#ifndef TABBUTTON_H
#define TABBUTTON_H

#include <QWidget>
#include <QPushButton>
#include <DGuiApplicationHelper>



class TabButton : public QWidget
{
    Q_OBJECT
public:
    explicit TabButton(QWidget *parent = nullptr);
    void setText(QString btn1,QString btn2);
    void setIndex(int index_t);
    int index;
signals:
    void indexChange(int index);
private:

    QPushButton *m_btn1=new QPushButton;
    QPushButton *m_btn2=new QPushButton;

    QColor maincolor;
    QColor bgcolor;
public slots:
    void setTheme(bool isDark, QColor color);
};

#endif // TABBUTTON_H
